<template>
  <div class="search-bar">
    <!-- 城市 -->
    <div class="city">广州市</div>
    <!-- 输入框 -->
    <div class="input-picker">
      <input type="text" placeholder="搜索精彩活动">
    </div>
  </div>
</template>

<style scoped>
/* 搜索栏 */
.search-bar {
  background-color: #00cec9;
  color: white;
  height: 50px;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
}
.search-bar .city {
  font-size: 12px;
  white-space: nowrap;
  margin-right: 10px;
}
.search-bar .input-picker {
  flex-grow: 1;
}
.search-bar .input-picker input {
  width: 100%;
  height: 26px;
  border-radius: 4px;
  padding: 0 8px;
}
</style>
